SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE VIEW dbo.vwbAgentesConEstimulo160
AS
SELECT     dbo.tb_Agentes.Documento, dbo.tb_AgentesConEstimulo160.idEstimulo AS ID
FROM         dbo.tb_Agentes INNER JOIN
                      dbo.tb_AgentesConEstimulo160 ON dbo.tb_Agentes.idAgente = dbo.tb_AgentesConEstimulo160.Agente
GO
GRANT SELECT ON  [dbo].[vwbAgentesConEstimulo160] TO [CentroDeDesignaciones]
GRANT SELECT ON  [dbo].[vwbAgentesConEstimulo160] TO [PersonalDocente]
GRANT SELECT ON  [dbo].[vwbAgentesConEstimulo160] TO [SoloVer]
GO
